package se.jocke.nbrs.ui.node;

import org.openide.nodes.AbstractNode;
import org.openide.nodes.Children;
import org.openide.util.lookup.Lookups;
import se.jocke.nbrs.model.RestService;

/**
 *
 * @author jocke
 */
public final class RSNode extends AbstractNode {

    private final RestService service;

    public RSNode(RestService service) throws IllegalStateException {
        super(Children.LEAF, Lookups.singleton(service));
        this.service = service;
        this.setDisplayName(service.getName());
        this.setIconBaseWithExtension("/se/jocke/nbrs/ui/rest-services.png");
    }
}
